import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect:'/index'
    },
    {
      path: '/index', //首页
      component: () => import('@/views/indexPage.vue')
    },
    {
      path: '/resume', //简历投递页
      component: () => import('@/views/resumeDelivery.vue')
    },
    {
      path: '/question', //用户反馈问题
      component: () => import('@/views/questionPage.vue')
    },
    {
      path:'/feedBack-A', //提示页面：提交成功，期待与您的相遇
      component:()=>import('@/views/feedBack-A.vue')
    },
    {
      path:'/feedBack-R', //提示页面：已拒绝，期待与小伙伴的下次见面
      component:()=>import('@/views/feedBack-R.vue')
    },
    {
      path:'/feedBack-FB', //提交成功，我们会尽快联系您
      component:()=>import('@/views/feedBack-FB.vue')
    },
    {
      path:'/feedBack-Rp', //提交失败，不可重复提交
      component:()=>import('@/views/feedBack-Rp.vue')
    },
    {
      path:'/result', //面试失败反馈详情页：无按钮
      component:()=>import('@/views/resultPage.vue')
    },
    {
      path:'/choose', //面试成功反馈详情页：有按钮
      component:()=>import('@/views/choose.vue')
    }
  ]
})

export default router
